package model

type User struct {
	BaseModal
	Name       string `gorm:"type:varchar(50);column:name" json:"name,omitempty"`
	PassWord   string `gorm:"type:varchar(255);column:password" json:"pass_word,omitempty"`
	Email      string `gorm:"type:varchar(100);column:email" json:"email,omitempty"`
	Phone      string `gorm:"type:varchar(20);column:phone" json:"phone,omitempty"`
	Position   int64  `gorm:"type:varchar(255);column:position" json:"position,omitempty"`
	Company    int64  `gorm:"type:bigint;column:company" json:"company,omitempty"`
	Department int64  `gorm:"type:bigint;column:department" json:"department,omitempty"`
	WorkCode   string `gorm:"type:varchar(8);column:workcode" json:"work_code,omitempty"`
	Addr       string `gorm:"type:varchar(255);column:addr" json:"addr"`
	Path       string `gorm:"type:varchar(255);column:path" json:"path"`
}

func (u *User) TableName() string {
	return "sys_user"
}
